package com.jungle.test.tool;

import java.util.concurrent.TimeUnit;

/**
 * @author Jungle
 * @create 2023-09-20 7:17
 */
public class NumUtil {
    public static  ThreadLocal<Integer> addNumThreadLocal = new ThreadLocal<>();
    public static int add10(int num) {
        addNumThreadLocal.set(num);
        try {
            TimeUnit.SECONDS.sleep(1);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return addNumThreadLocal.get() + 10;
    }
}
